package com.fjb.service.product.impl;

import com.fjb.pojo.product.ProductFiles;
import com.fjb.pojo.product.vo.ProductFilesVo;
import com.fjb.service.product.ProductFilesService;
import com.fjb.mapper.product.ProductFilesMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 产品文件 服务实现类
 * </p>
 *
 * @author hemiao
 * @since 2020-01-27
 */
@Service
public class ProductFilesServiceImpl extends ServiceImpl<ProductFilesMapper, ProductFiles> implements ProductFilesService {

	@Autowired
	private ProductFilesMapper productFilesMapper;
	
	@Override
	public List<ProductFilesVo> selectList(Integer productId, Integer mainUserId) {
		ProductFiles files = new ProductFiles();
		files.setProductId(productId);
		files.setMainUserId(mainUserId);	
		List<ProductFilesVo> list = productFilesMapper.selectFileList(files);
		return list;
	}

}
